//
//  SHCollectionTableCell.m
//  UI_CarHome
//
//  Created by dllo on 15/11/8.
//  Copyright (c) 2015年 沈浩. All rights reserved.
//

#import "SHCollectionTableCell.h"
#import "SHHandle.h"
@implementation SHCollectionTableCell

- (void)dealloc
{
    [_leftImageView release];
    [_tittleLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    self.leftImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:self.leftImageView];
    [_leftImageView release];
    
    
    self.tittleLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.tittleLabel];
    self.tittleLabel.textColor = TEXTCOLOR;
    [_tittleLabel release];
    self.tittleLabel.numberOfLines = 2;
}

- (void)layoutSubviews {
    self.leftImageView.frame = CGRectMake(10 * WID, 5 * HEI, WIDTHS / 4, HEIGHTS - 10 * HEI);
    self.tittleLabel.frame = CGRectMake(15 * WID + WIDTHS / 4, 5 * HEI, WIDTHS * 2 / 3 - 20 * WID, (HEIGHTS - 10 * HEI) / 2);
}
@end
